import QtQuick 1.1
import com.nokia.symbian 1.1

SelectionDialog {
    id: root

    signal aspectRatio(int ratio)

    Component.onCompleted: {
        aspectModel.append({modelData:qsTr("Keep aspect ratio"), ratio: 1})
        aspectModel.append({modelData:qsTr("Ignore aspect ratio"), ratio: 0})
    }

    titleText: qsTr("Image aspect ratio")
    model: ListModel{
        id: aspectModel
    }

    onSelectedIndexChanged: {
        root.aspectRatio(model.get(selectedIndex).ratio)
    }

}

